﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ThietBiSo.LinQDB;
using ThietBiSo.Models;
using ThietBiSo.Controllers;

namespace ThietBiSo.Controllers
{
    public class HomeController : ApplicationController
    {

        private MSanPham msp = new MSanPham();
        MTinTuc mtt = new MTinTuc();
        MXayDung mxd = new MXayDung();
        public ActionResult Index()
        {

            ViewData["sanphams"] = msp.FindAll_Web();

            ViewData["xaydungs"] = mxd.FindAll_Web();

            return View();
        }

      


    }
}
